//logs.js
var localData = require('../../data/aa.js');
var localDataBB = require('../../data/bb.js');
console.log(1111)
Page({
    data: {
        imgUrl: '../imgs/logo.png',
        catalogs: [],
        mainList: [],
        itemList: [],
        // mainImg:'../imgs/banner.png',
        catalogSelect: 1 //判断是否选中
    },
    tabItem: function(e) {
        console.log(e)
        var that = this;
        console.log(that)
        that.setData({ //把选中值放入判断值
            catalogSelect: e.currentTarget.dataset.select
        })
    },
    onLoad: function() {
        console.log(22)

        console.log(localData)
        this.setData({
            catalogs: localData.getList.catalogs,
            itemList: localDataBB.getListBB.Data,
            mainList: localData.getList.mainList
        })
    }
})